package com.peanut.sql.lineage.postgresql;

import java.util.Objects;

/****
 author:yifan
 date:2016
 description:
 **/
public class Constant extends Vertex {

    private String constantValue;

    public Constant(String constantValue) {
        this.constantValue = constantValue;
    }

    public Constant() {
    }

    public String getConstantValue() {
        return constantValue;
    }

    public void setConstantValue(String constantValue) {
        this.constantValue = constantValue;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Constant constant = (Constant) o;
        return Objects.equals(constantValue, constant.constantValue);
    }

    @Override
    public int hashCode() {
        return Objects.hash(constantValue);
    }

    @Override
    public String toString() {
        return constantValue;
    }

}
